package cn.itcast.erp.service;

import cn.itcast.erp.entity.Inventory;
import cn.itcast.erp.entity.utils.AjaxResult;

import java.io.InputStream;

public interface InventoryService {

    //查询盘盈盘亏记录
    AjaxResult findInventory(Inventory inventory);

    //查询by id
    Inventory findInventoryById(Long uuid);

    //新增记录
    AjaxResult insertInventory(Long userId,Inventory inventory);

    //修改记录
    AjaxResult updateInventory(Inventory inventory);

    //更新审核状态(更新库存)
    AjaxResult updateState(Long userId,Long uuid);

    // 删除记录
    int deleteInventory(Long uuid);

    //导入Excel
    InputStream getAllInventoryEx();

}
